core.grid = {};

core.grid.COLUMN_INTERVAL = 2;
core.grid.ROW_INTERVAL = 3;

core.grid.GridPanel = function(config){
    this.init(config);
}

core.extendClass('core.grid.GridPanel', 'core.form.UIControl');

core.grid.GridPanel.prototype.init = function(config){
    this.xType = 'grid';
    this.superCall('init', arguments, config);
    
    this.table = document.createElement('table');
    $(this.table).addClass('grid').appendTo(this.div);
    this.columnDef = [];
    var def = config.columns || '1';
    var arr = def.split(',');
    for(var i = 0; i<arr.length; i++){
        var f = parseFloat(arr[i]);
        if(!f)
            f = 1;
//        def.push()
    }
};
